package com.tjetc._7date;

import java.util.Calendar;
import java.util.Date;

public class _2Calendar {
    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();
        System.out.println(calendar);
        Date time = calendar.getTime();
        System.out.println(time);
        System.out.println(calendar.getTimeInMillis());
        // 获取年 其余字段 通过Calendar.的方式 自行查找
        System.out.println(calendar.get(Calendar.YEAR));
    }
}
